package es.ats.codington.festival.utils.FERSDataConnection;

import java.sql.*;

import es.ats.codington.festival.utils.JSonAccess;

public class FersDC {
	
	static Connection con ;
	
	public static Connection getConnection() {

		 try {
			 
		/**	 JSonAccess json = new JSonAccess();**/
			
		  
		Class.forName("com.mysql.jdbc.Driver");
		
		//Obtaining a connection using DriverManager class
		con = DriverManager.getConnection("jdbc:mysql://localhost:3306/codingtonpojodb","root","abcd1234");
			 
	 
			
		} catch (ClassNotFoundException e) {
			
			e.printStackTrace();
		} catch (SQLException e) {
			
			e.printStackTrace();
		}
			
	
	return con;
	}
}


